.class Lcom/wmr/order/OrderDetFrameActivity$11;
.super Ljava/lang/Thread;
.source "OrderDetFrameActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/wmr/order/OrderDetFrameActivity;->getOrderDet()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/wmr/order/OrderDetFrameActivity;


# direct methods
.method constructor <init>(Lcom/wmr/order/OrderDetFrameActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    .line 786
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 20

    .prologue
    .line 788
    invoke-super/range {p0 .. p0}, Ljava/lang/Thread;->run()V

    .line 790
    new-instance v10, Landroid/os/Message;

    invoke-direct {v10}, Landroid/os/Message;-><init>()V

    .line 792
    .local v10, "msg":Landroid/os/Message;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    move-object/from16 v17, v0

    .line 793
    const-string v18, "userInfo"

    const/16 v19, 0x0

    .line 792
    invoke-virtual/range {v17 .. v19}, Lcom/wmr/order/OrderDetFrameActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v11

    .line 794
    .local v11, "preferences":Landroid/content/SharedPreferences;
    const-string v17, "uid"

    const-string v18, ""

    move-object/from16 v0, v17

    move-object/from16 v1, v18

    invoke-interface {v11, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    .line 795
    .local v15, "uid":Ljava/lang/String;
    const-string v17, "pass"

    const-string v18, ""

    move-object/from16 v0, v17

    move-object/from16 v1, v18

    invoke-interface {v11, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 796
    .local v12, "pwd":Ljava/lang/String;
    new-instance v17, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity;->m:Lmyapp/MyApp;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    invoke-direct/range {v17 .. v18}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 797
    const-string v18, "/index.php?ctrl=app&action=neworderdet&orderid="

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    .line 798
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    move-object/from16 v18, v0

    # getter for: Lcom/wmr/order/OrderDetFrameActivity;->orderid:Ljava/lang/String;
    invoke-static/range {v18 .. v18}, Lcom/wmr/order/OrderDetFrameActivity;->access$22(Lcom/wmr/order/OrderDetFrameActivity;)Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    const-string v18, "&uid="

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    invoke-virtual {v0, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    const-string v18, "&pwd="

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    invoke-virtual {v0, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    .line 799
    const-string v18, "&datatype=json"

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    .line 796
    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v16

    .line 800
    .local v16, "url":Ljava/lang/String;
    const-string v17, "OrderdetACtivity"

    new-instance v18, Ljava/lang/StringBuilder;

    const-string v19, "getShopSource() \u947e\u5cf0\u5f47\u7481\u3220\u5d1f\u7487\ufe3d\u510f"

    invoke-direct/range {v18 .. v19}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v18

    move-object/from16 v1, v16

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v18

    invoke-static/range {v17 .. v18}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 801
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity;->m:Lmyapp/MyApp;

    move-object/from16 v17, v0

    invoke-static/range {v16 .. v17}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v14

    .line 804
    .local v14, "str":Ljava/lang/String;
    :try_start_0
    new-instance v8, Lorg/json/JSONObject;

    invoke-direct {v8, v14}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 806
    .local v8, "json":Lorg/json/JSONObject;
    const-string v17, "error"

    move-object/from16 v0, v17

    invoke-virtual {v8, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v17

    const-string v18, "true"

    invoke-virtual/range {v17 .. v18}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v17

    if-eqz v17, :cond_0

    .line 807
    const-string v17, "msg"

    move-object/from16 v0, v17

    invoke-virtual {v8, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v17

    move-object/from16 v0, v17

    iput-object v0, v10, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 808
    const/16 v17, 0x1

    move/from16 v0, v17

    iput v0, v10, Landroid/os/Message;->arg1:I

    .line 809
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity;->h:Landroid/os/Handler;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    invoke-virtual {v0, v10}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 872
    .end local v8    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 812
    .restart local v8    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v17, "msg"

    move-object/from16 v0, v17

    invoke-virtual {v8, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v17

    if-eqz v17, :cond_1

    .line 813
    const/16 v17, 0x2

    move/from16 v0, v17

    iput v0, v10, Landroid/os/Message;->arg1:I

    .line 814
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity;->h:Landroid/os/Handler;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    invoke-virtual {v0, v10}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 865
    .end local v8    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v5

    .line 867
    .local v5, "e":Lorg/json/JSONException;
    invoke-virtual {v5}, Lorg/json/JSONException;->printStackTrace()V

    .line 869
    const/16 v17, 0x5

    move/from16 v0, v17

    iput v0, v10, Landroid/os/Message;->arg1:I

    .line 870
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity;->h:Landroid/os/Handler;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    invoke-virtual {v0, v10}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 817
    .end local v5    # "e":Lorg/json/JSONException;
    .restart local v8    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    const-string v17, "msg"

    move-object/from16 v0, v17

    invoke-virtual {v8, v0}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    .line 818
    .local v2, "Ordershow":Lorg/json/JSONObject;
    const-string v17, "statuslist"

    move-object/from16 v0, v17

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v13

    .line 819
    .local v13, "statuslist":Lorg/json/JSONArray;
    const-string v17, "gdlist"

    move-object/from16 v0, v17

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    move-result-object v6

    .line 822
    .local v6, "goodslist":Lorg/json/JSONArray;
    :try_start_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    move-object/from16 v17, v0

    # getter for: Lcom/wmr/order/OrderDetFrameActivity;->orderBean:Lbean/OrderBean;
    invoke-static/range {v17 .. v17}, Lcom/wmr/order/OrderDetFrameActivity;->access$2(Lcom/wmr/order/OrderDetFrameActivity;)Lbean/OrderBean;

    move-result-object v17

    const-string v18, "msg"

    move-object/from16 v0, v18

    invoke-virtual {v8, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v18

    invoke-static/range {v17 .. v18}, LPlugclass/JsonHelper;->toJavaBean(Ljava/lang/Object;Ljava/lang/String;)V
    :try_end_2
    .catch Ljava/text/ParseException; {:try_start_2 .. :try_end_2} :catch_1
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_0

    .line 829
    :goto_1
    :try_start_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    move-object/from16 v17, v0

    # getter for: Lcom/wmr/order/OrderDetFrameActivity;->sateParticulars:Ljava/util/ArrayList;
    invoke-static/range {v17 .. v17}, Lcom/wmr/order/OrderDetFrameActivity;->access$10(Lcom/wmr/order/OrderDetFrameActivity;)Ljava/util/ArrayList;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/util/ArrayList;->clear()V

    .line 830
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    move-object/from16 v17, v0

    # getter for: Lcom/wmr/order/OrderDetFrameActivity;->orderParticulars:Ljava/util/ArrayList;
    invoke-static/range {v17 .. v17}, Lcom/wmr/order/OrderDetFrameActivity;->access$12(Lcom/wmr/order/OrderDetFrameActivity;)Ljava/util/ArrayList;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/util/ArrayList;->clear()V

    .line 833
    const-string v17, "\u6240\u6709\u6570\u636e"

    move-object/from16 v0, v17

    invoke-static {v0, v14}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 834
    const/4 v7, 0x0

    .local v7, "i":I
    :goto_2
    invoke-virtual {v13}, Lorg/json/JSONArray;->length()I

    move-result v17

    move/from16 v0, v17

    if-lt v7, v0, :cond_2

    .line 847
    const/4 v7, 0x0

    :goto_3
    invoke-virtual {v6}, Lorg/json/JSONArray;->length()I

    move-result v17

    move/from16 v0, v17

    if-lt v7, v0, :cond_3

    .line 863
    const/16 v17, 0x3

    move/from16 v0, v17

    iput v0, v10, Landroid/os/Message;->arg1:I

    .line 864
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity;->h:Landroid/os/Handler;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    invoke-virtual {v0, v10}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 824
    .end local v7    # "i":I
    :catch_1
    move-exception v5

    .line 826
    .local v5, "e":Ljava/text/ParseException;
    invoke-virtual {v5}, Ljava/text/ParseException;->printStackTrace()V

    goto :goto_1

    .line 835
    .end local v5    # "e":Ljava/text/ParseException;
    .restart local v7    # "i":I
    :cond_2
    const-string v17, "\u5355\u4e2a\u6570\u636e"

    invoke-virtual {v13, v7}, Lorg/json/JSONArray;->getString(I)Ljava/lang/String;

    move-result-object v18

    invoke-static/range {v17 .. v18}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 836
    invoke-virtual {v13, v7}, Lorg/json/JSONArray;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 837
    .local v4, "c":Ljava/lang/String;
    new-instance v3, Lbean/OrderSateParticular;

    invoke-direct {v3}, Lbean/OrderSateParticular;-><init>()V
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_0

    .line 839
    .local v3, "bb":Lbean/OrderSateParticular;
    :try_start_4
    invoke-static {v3, v4}, LPlugclass/JsonHelper;->toJavaBean(Ljava/lang/Object;Ljava/lang/String;)V

    .line 841
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    move-object/from16 v17, v0

    # getter for: Lcom/wmr/order/OrderDetFrameActivity;->sateParticulars:Ljava/util/ArrayList;
    invoke-static/range {v17 .. v17}, Lcom/wmr/order/OrderDetFrameActivity;->access$10(Lcom/wmr/order/OrderDetFrameActivity;)Ljava/util/ArrayList;

    move-result-object v17

    move-object/from16 v0, v17

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_4
    .catch Ljava/text/ParseException; {:try_start_4 .. :try_end_4} :catch_2
    .catch Lorg/json/JSONException; {:try_start_4 .. :try_end_4} :catch_0

    .line 834
    :goto_4
    add-int/lit8 v7, v7, 0x1

    goto :goto_2

    .line 842
    :catch_2
    move-exception v5

    .line 844
    .restart local v5    # "e":Ljava/text/ParseException;
    :try_start_5
    invoke-virtual {v5}, Ljava/text/ParseException;->printStackTrace()V

    goto :goto_4

    .line 848
    .end local v3    # "bb":Lbean/OrderSateParticular;
    .end local v4    # "c":Ljava/lang/String;
    .end local v5    # "e":Ljava/text/ParseException;
    :cond_3
    invoke-virtual {v6, v7}, Lorg/json/JSONArray;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 849
    .restart local v4    # "c":Ljava/lang/String;
    new-instance v9, Lbean/OrderParticular;

    invoke-direct {v9}, Lbean/OrderParticular;-><init>()V
    :try_end_5
    .catch Lorg/json/JSONException; {:try_start_5 .. :try_end_5} :catch_0

    .line 851
    .local v9, "kk":Lbean/OrderParticular;
    :try_start_6
    invoke-static {v9, v4}, LPlugclass/JsonHelper;->toJavaBean(Ljava/lang/Object;Ljava/lang/String;)V

    .line 853
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/OrderDetFrameActivity$11;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    move-object/from16 v17, v0

    # getter for: Lcom/wmr/order/OrderDetFrameActivity;->orderParticulars:Ljava/util/ArrayList;
    invoke-static/range {v17 .. v17}, Lcom/wmr/order/OrderDetFrameActivity;->access$12(Lcom/wmr/order/OrderDetFrameActivity;)Ljava/util/ArrayList;

    move-result-object v17

    move-object/from16 v0, v17

    invoke-virtual {v0, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_6
    .catch Ljava/text/ParseException; {:try_start_6 .. :try_end_6} :catch_3
    .catch Lorg/json/JSONException; {:try_start_6 .. :try_end_6} :catch_0

    .line 847
    :goto_5
    add-int/lit8 v7, v7, 0x1

    goto :goto_3

    .line 854
    :catch_3
    move-exception v5

    .line 856
    .restart local v5    # "e":Ljava/text/ParseException;
    :try_start_7
    invoke-virtual {v5}, Ljava/text/ParseException;->printStackTrace()V
    :try_end_7
    .catch Lorg/json/JSONException; {:try_start_7 .. :try_end_7} :catch_0

    goto :goto_5
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 875
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 876
    monitor-exit p0

    return-void

    .line 875
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
